package org.springframework.demo7;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo7 {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config8.class);
		PayService bean = context.getBean(PayService.class);
		bean.pay();
	}
}
